{if $options!=''}
	{php}$i=0;{/php}
	<div class="listing_attributes_selection clearfix">
		<dl>
			{foreach name=outer item=options_data from=$options}
				{if $options_data.DATA || $GM_HIDE_OUT_OF_STOCK == 'false'}
					<dt>{$options_data.NAME}:</dt>
					<dd>
						<select class="gm_listing_form input-select" name="id[{$options_data.ID}]">
							{foreach key=key_data item=item_data from=$options_data.DATA}
							<option {* AJAX Price-Update class START *}{if $item_data.PRICE}class="has-price" {/if}{* AJAX Price-Update class END *}value="{$item_data.ID}" title="{$item_data.TEXT|replace:'"':'&quot;'} {if $item_data.PRICE}{$item_data.PREFIX} {$item_data.PRICE}{/if}{if $GM_SHOW_STOCK == 'true' && $options_data.NAME != 'downloads'} {$GM_STOCK_TEXT_BEFORE|replace:'"':'&quot;'}{$item_data.GM_STOCK}{$GM_STOCK_TEXT_AFTER|replace:'"':'&quot;'}{/if}" {php} if(!isset($chk)) echo 'selected="selected"'; $chk = true; {/php}>{$item_data.TEXT} {if $item_data.PRICE}{$item_data.PREFIX} {$item_data.PRICE}{/if}{if $GM_SHOW_STOCK == 'true' && $options_data.NAME != 'downloads'} {$GM_STOCK_TEXT_BEFORE}{$item_data.GM_STOCK}{$GM_STOCK_TEXT_AFTER}{/if}</option>
							{/foreach}
						</select>
						{php} unset($chk); $i++; {/php}
					</dd>
				{/if}
			{/foreach}
		</dl>
	</div>
{/if}